import SwiftUI

struct TemplateView: View {
    // 只在这里写界面结构
    var body: some View {
        VStack {
            // Big title
            makeBigTitle()
            
            // Sub title
            makeSubTitle()
            
            // Description
            makeDescription()
            
            // Demo
            makeDemo()
        }
    }
}

extension TemplateView {
    func makeBigTitle() -> some View {
        Text("Big Title")
    }
    
    func makeSubTitle() -> some View {
        Text("Sub Title")
    }
    
    func makeDescription() -> some View {
        Text("Description")
    }
    
    func makeDemo() -> some View {
        Text("Demo view.")
    }
}


